package com.example.rfidserver.pojo;

import java.util.Objects;

public class Consume {
    //服务项目的id
    private int consume_id;
    private String consume_Item_name;
    private double consume_Item_integral;

    @Override
    public String toString() {
        return "Consume{" +
                "consume_id=" + consume_id +
                ", consume_Item_name='" + consume_Item_name + '\'' +
                ", consume_Item_integral=" + consume_Item_integral +
                '}';
    }

    public int getConsume_id() {
        return consume_id;
    }

    public void setConsume_id(int consume_id) {
        this.consume_id = consume_id;
    }

    public String getConsume_Item_name() {
        return consume_Item_name;
    }

    public void setConsume_Item_name(String consume_Item_name) {
        this.consume_Item_name = consume_Item_name;
    }

    public double getConsume_Item_integral() {
        return consume_Item_integral;
    }

    public void setConsume_Item_integral(double consume_Item_integral) {
        this.consume_Item_integral = consume_Item_integral;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Consume consume = (Consume) o;
        return consume_id == consume.consume_id &&
                Double.compare(consume.consume_Item_integral, consume_Item_integral) == 0 &&
                Objects.equals(consume_Item_name, consume.consume_Item_name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(consume_id, consume_Item_name, consume_Item_integral);
    }
}
